<?php

namespace app\admin\validate;

use think\Validate;

class HfPrice extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'type_id' =>'require',
        'height'=>'require',
        'width' => 'require',
        'price'=> 'require'
    ];

    /**
     * 提示消息
     */
    protected $message = [
        
    ];

    /**
     * 字段描述
     */
    protected $field = [
    ];

    /**
     * 验证场景
     */
    protected $scene = [

    ];

    public function __construct(array $rules = [], $message = [], $field = [])
    {
        $this->field = [
            'type_id'=>'锦旗材质',

        ];
        $this->message = array_merge($this->message, [
            'tyle_id.require' => '请选择材质',
            'height.require' => '请输入长度',
            'width.require' => '请输入宽度',
            'price.require' => '请输入价格',
        ]);
        parent::__construct($rules, $message, $field);
    }
    
}
